<?php
/*
 * @开发工具: JetBrains PhpStorm.
 * @文件名：IApiConfig.class.php
 * @类功能: api配置文件
 * @开发者: zc
 * @开发时间： 14-10-28
 * @版本：version 1.0
 */
namespace app\credit\ext;

class IApiConfig{
    //API配置文件
    public static $api = array(
        //===================共通接口====================
        "system/start" => array(
            "api_group" => "共通接口",
            "api_name" => "初始化接口",
            "api_param" => array(
                array("name"=>"设备编号","code"=>"device_no"),
                array("name"=>"系统区分","code"=>"os"),
                array("name"=>"系统版本","code"=>"version"),
            ),
        ),
        "system/config" => array(
            "api_group" => "共通接口",
            "api_name" => "取得常量值接口",
            "api_param" => array(
                array("name"=>"常量编号（多个值用逗号隔开）","code"=>"config_code"),
            ),
        ),
        "system/sms" => array(
            "api_group" => "共通接口",
            "api_name" => "发送短信验证码",
            "api_param" => array(
                array("name"=>"手机号码","code"=>"phone"),
            ),
        ),
        "system/ad" => array(
            "api_group" => "共通接口",
            "api_name" => "取得广告图片列表",
            "api_param" => array(
                array("name"=>"城市编号","code"=>"city_id"),
                array("name"=>"广告位置编号【<br>XdTop：首页头部广告】","code"=>"location_code"),
            ),
        ),
        "system/protocol" => array(
            "api_group" => "共通接口",
            "api_name" => "取得协议内容",
            "api_param" => array(
                array("name"=>"协议编号【<br>LoanProtocol：客户APP<br>CreditProtocol：信贷APP<br>】","code"=>"protocol_code"),
            ),
        ),
        "system/area" => array(
            "api_group" => "共通接口",
            "api_name" => "取得行政区域列表",
            "api_param" => array(
                array("name"=>"上层节点编号","code"=>"parent_id"),
            ),
        ),
        "system/location" => array(
            "api_group" => "共通接口",
            "api_name" => "区域定位",
            "api_param" => null,
        ),
        "system/city" => array(
            "api_group" => "共通接口",
            "api_name" => "通过城市名称取得城市编号及名称",
            "api_param" => array(
                array("name"=>"城市名称","code"=>"city_name"),
            ),
        ),
        "system/announcement_list" => array(
            "api_group" => "共通接口",
            "api_name" => "系统公告",
            "api_param" => array(
                array("name"=>"最下面数据编号（首次请求为空,announcement_id）","code"=>"bottom_id"),
            ),
        ),
        "system/announcement_read" => array(
            "api_group" => "共通接口",
            "api_name" => "设置公告阅读状态",
            "api_param" => array(
                array("name"=>"公告编号","code"=>"announcement_id"),
            ),
        ),
        "system/message" => array(
            "api_group" => "共通接口",
            "api_name" => "取得系统消息",
            "api_param" => array(
                array("name"=>"APP缓存中消息最小ID，为空时取得全部","code"=>"bottom_id"),
            ),
        ),
        "system/message_read" => array(
            "api_group" => "共通接口",
            "api_name" => "设置消息读取状态",
            "api_param" => array(
                array("name"=>"消息ID","code"=>"message_id"),
            ),
        ),
        "system/not_read_num" => array(
            "api_group" => "共通接口",
            "api_name" => "取得未读取数量（公告、消息）",
            "api_param" => null,
        ),

        "system/lang" => array(
            "api_group" => "共通接口",
            "api_name" => "语言包",
            "api_param" => array(
            ),
        ),
        "system/suggest" => array(
            "api_group" => "共通接口",
            "api_name" => "用户建议",
            "api_param" => array(
                array("name"=>"建议内容","code"=>"content"),
            ),
        ),

        //===================用户相关接口====================
        "user/reg" => array(
            "api_group" => "用户相关接口",
            "api_name" => "用户注册",
            "api_param" => array(
                array("name"=>"手机号","code"=>"phone"),
                array("name"=>"密码","code"=>"pwd"),
                array("name"=>"短信验证码","code"=>"verification"),
            ),
        ),
        "user/login" => array(
            "api_group" => "用户相关接口",
            "api_name" => "用户登录",
            "api_param" => array(
                array("name"=>"手机号","code"=>"phone"),
                array("name"=>"密码","code"=>"pwd"),
            ),
        ),
        "user/sms_login" => array(
            "api_group" => "用户相关接口",
            "api_name" => "用户短信登录",
            "api_param" => array(
                array("name"=>"手机号","code"=>"phone"),
                array("name"=>"短信验证码","code"=>"verification"),
            ),
        ),
        "user/logout" => array(
            "api_group" => "用户相关接口",
            "api_name" => "用户退出登录",
            "api_param" => array(
                array("name"=>"设备编号","code"=>"device_no"),
                array("name"=>"系统区分","code"=>"os"),
                array("name"=>"系统版本","code"=>"version"),
            ),
        ),
        "user/login_info" => array(
            "api_group" => "用户相关接口",
            "api_name" => "取得登录用户信息",
            "api_param" => null,
        ),
        "user/set_field" => array(
            "api_group" => "用户相关接口",
            "api_name" => "设置用户基础字段信息",
            "api_param" => array(
                array("name"=>"字段名称[nick：昵称、avatar：头像】","code"=>"field"),
                array("name"=>"字段值","code"=>"value"),
            ),
        ),
        "user/set_info" => array(
            "api_group" => "用户相关接口",
            "api_name" => "设置用户信息",
            "api_param" => array(
                array("name"=>"头像","code"=>"avatar"),
                array("name"=>"昵称","code"=>"nick"),
                array("name"=>"手机","code"=>"business_phone"),
                array("name"=>"服务说明","code"=>"service_ote"),
            ),
        ),
        "user/upd_pwd" => array(
            "api_group" => "用户相关接口",
            "api_name" => "修改密码",
            "api_param" => array(
                array("name"=>"短信验证码","code"=>"user_verification"),
                array("name"=>"新密码","code"=>"new_pwd"),
            ),
        ),
        "user/find_pwd" => array(
            "api_group" => "用户相关接口",
            "api_name" => "找回密码",
            "api_param" => array(
                array("name"=>"电话号码","code"=>"user_phone"),
                array("name"=>"短信验证码","code"=>"verification"),
                array("name"=>"新密码","code"=>"new_pwd"),
            ),
        ),
        "user/set_real" => array(
            "api_group" => "用户相关接口",
            "api_name" => "个人/企业认证",
            "api_param" => array(
                array("name"=>"真实姓名【有传此参数为个人认证】","code"=>"real"),
                array("name"=>"身份证头像图","code"=>"id_card_head"),
                array("name"=>"身份证国徽图","code"=>"id_card_national"),
                array("name"=>"身份证号","code"=>"identity"),
                array("name"=>"企业名称【有传此参数为企业认证】","code"=>"agent_name"),
                array("name"=>"所在省份","code"=>"province_id"),
                array("name"=>"所在城市","code"=>"city_id"),
                array("name"=>"所在区域","code"=>"area_id"),
                array("name"=>"详细地址","code"=>"address"),
                array("name"=>"营业执照","code"=>"business_license_url"),
            ),
        ),

        //===================贷款相关接口====================
        "loan/loan_apply_list" => array(
            "api_group" => "贷款相关",
            "api_name" => "贷款申请列表",
            "api_param" => array(
                array("name"=>"最下面数据编号（首次请求为空,loan_apply_id）","code"=>"bottom_id"),
            ),
        ),
        "loan/loan_apply_log" => array(
            "api_group" => "贷款相关",
            "api_name" => "贷款跟踪记录",
            "api_param" => array(
                array("name"=>"贷款产品申请编号","code"=>"loan_apply_id"),
                array("name"=>"最下面数据编号（首次请求为空,loan_apply_log_id）","code"=>"bottom_id"),
            ),
        ),
        "loan/apply_log_add" => array(
            "api_group" => "贷款相关",
            "api_name" => "添加跟踪记录",
            "api_param" => array(
                array("name"=>"贷款产品申请编号","code"=>"loan_apply_id"),
                array("name"=>"内容","code"=>"note"),
            ),
        ),
        //===================信用卡相关接口====================
        "credit/credit_apply_list" => array(
            "api_group" => "信用卡相关",
            "api_name" => "信用卡申请列表",
            "api_param" => array(
                array("name"=>"最下面数据编号（首次请求为空,credit_apply_id）","code"=>"bottom_id"),
            ),
        ),
        "credit/credit_apply_log" => array(
            "api_group" => "信用卡相关",
            "api_name" => "信用卡跟踪记录",
            "api_param" => array(
                array("name"=>"信用卡申请编号","code"=>"credit_apply_id"),
                array("name"=>"最下面数据编号（首次请求为空,credit_apply_log_id）","code"=>"bottom_id"),
            ),
        ),
        "credit/apply_log_add" => array(
            "api_group" => "信用卡相关",
            "api_name" => "添加跟踪记录",
            "api_param" => array(
                array("name"=>"信用卡申请编号","code"=>"credit_apply_id"),
                array("name"=>"内容","code"=>"note"),
            ),
        ),
        //===================订单相关接口====================
        "bid/index" => array(
            "api_group" => "订单相关接口",
            "api_name" => "首页数据",
            "api_param" => array(
                array("name"=>"省份编号","code"=>"province_id"),
                array("name"=>"城市编号","code"=>"city_id"),
            ),
        ),
        "bid/search_item" => array(
            "api_group" => "订单相关接口",
            "api_name" => "搜索选项",
            "api_param" => array(
            ),
        ),
        "bid/bid_list" => array(
            "api_group" => "订单相关接口",
            "api_name" => "订单列表",
            "api_param" => array(
                array("name"=>"省份编号","code"=>"province_id"),
                array("name"=>"城市编号","code"=>"city_id"),
                array("name"=>"最小贷款金额","code"=>"money_min"),
                array("name"=>"最大贷款金额","code"=>"money_max"),
                array("name"=>"最小年龄","code"=>"age_min"),
                array("name"=>"最大年龄","code"=>"age_max"),
                array("name"=>"资产信息【|隔开】","code"=>"asset"),
                array("name"=>"最下面数据编号（首次请求为空,code）","code"=>"bottom_id"),
            ),
        ),
        "bid/bid_info" => array(
            "api_group" => "订单相关接口",
            "api_name" => "订单详情",
            "api_param" => array(
                array("name"=>"订单ID","code"=>"user_pool_bid_id")
            ),
        ),
        "bid/bid_tender" => array(
            "api_group" => "订单相关接口",
            "api_name" => "抢单",
            "api_param" => array(
                array("name"=>"订单ID","code"=>"user_pool_bid_id"),
                array("name"=>"抢单说明","code"=>"tender_note"),
            ),
        ),
        "user/bid_list" => array(
            "api_group" => "订单相关接口",
            "api_name" => "我的订单",
            "api_param" => array(
                array("name"=>"【1：抢单中；2：服务中；3：未抢到；4：已完成】","code"=>"tender_status"),
                array("name"=>"最下面数据编号（首次请求为空,code）","code"=>"bottom_id"),
            ),
        ),
//        "user/bid_info" => array(
//            "api_group" => "订单相关接口",
//            "api_name" => "我的订单详情",
//            "api_param" => array(
//                array("name"=>"抢单ID","code"=>"agent_admin_tender_id"),
//            ),
//        ),
        "user/bid_add_log" => array(
            "api_group" => "订单相关接口",
            "api_name" => "添加日常跟踪",
            "api_param" => array(
                array("name"=>"抢单ID","code"=>"agent_admin_tender_id"),
                array("name"=>"进度说明","code"=>"note"),
                array("name"=>"视频列表【{|}隔开】","code"=>"video_list"),
                array("name"=>"音频列表【{|}隔开】","code"=>"audio_list"),
                array("name"=>"图片列表【{|}隔开】","code"=>"img_list"),
            ),
        ),
        "user/bid_log_list" => array(
            "api_group" => "订单相关接口",
            "api_name" => "日常跟踪列表",
            "api_param" => array(
                array("name"=>"抢单ID","code"=>"agent_admin_tender_id"),
                array("name"=>"最下面数据编号（首次请求为空,user_pool_bid_task_id）","code"=>"bottom_id"),
            ),
        ),
        //===================我的相关接口====================
        "user/evaluate_list" => array(
            "api_group" => "我的接口",
            "api_name" => "评价列表",
            "api_param" => array(
                array("name"=>"最下面数据编号（首次请求为空,code）","code"=>"bottom_id"),
            ),
        ),
    );
}